﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.DTO.Department
{
    /// <summary>
    /// 用于部门的树形数据显示
    /// </summary>
    public class DepartmentShowDTO
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 部门描述
        /// </summary>
        public string Describe { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public string Principal { get; set; }
        /// <summary>
        /// 排序值
        /// </summary>
        public int OrderSort { get; set; } = 0;
        /// <summary>
        /// 与该项匹配的所有ID值，
        /// </summary>
        public int[] LayerIds { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool IsEnable { get; set; } = true;
        /// <summary>
        /// 子集部门信息
        /// </summary>
        public List<DepartmentShowDTO> children { get; set; }
    }
}
